<?php
	class messages
	{
		var $id_users, $email, $display_name, $join_date, $last_login, $image;
		
		public function __construct($id_users)
		{
			global $db;

			$results = $db->query("select * from users where id_users='".$id_users."' LIMIT 1");
			$data = $db->fetch($results);
			
			$this->id_users = (int) $data["id_users"];
			$this->email = $data["email"];
			$this->display_name = $data["display_name"];
			$this->join_date = (int) $data["join_date"];
			$this->last_login = (int) $data["last_login"];
			$this->image = $data["image"];
			
		}
	}
?>